import Vue from 'vue'
import VueRouter from 'vue-router'

import sellerpage from '@/views/SellerPage'
import trendPage from '@/views/TrendPage'
import mapPage from '@/views/MapPage'
import rankPage from '@/views/RankPage'
import HotPage from '@/views/HotPage'
import StockPage from '@/views/StockPage'
import ScreenPage from '@/views/ScreenPage'

Vue.use(VueRouter)


const routes = [
  {
    path: '/', redirect: '/screenPage'
  },
  { path: '/sellerpage', component: sellerpage },
  { path: '/trendPage', component: trendPage },
  { path: '/mapPage', component: mapPage },
  { path: '/rankPage', component: rankPage },
  { path: '/hotPage', component: HotPage },
  { path: '/screenPage', component: ScreenPage },
  {path:'/stockPage',component:StockPage}
]

const router = new VueRouter({
  routes
})

export default router
